package com.goldman.aplt.service.rule;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.goldman.aplt.entity.rule.AppRuleData;
import com.goldman.aplt.repo.rule.AppRuleDataMapper;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author lenovo
* @description 针对表【app_rule_data】的数据库操作Service实现
* @createDate 2024-07-16 17:43:21
*/
@Service
@CacheConfig(cacheNames = "${systemId}:AppRuleDataService")
public class AppRuleDataService extends ServiceImpl<AppRuleDataMapper, AppRuleData> {

    @Cacheable
    public List<AppRuleData> getListByRuleId(String ruleId) {
        return this.lambdaQuery().eq(AppRuleData::getRuleId, ruleId).list();
    }

}




